import Vue from 'vue'
import VueRouter from 'vue-router'
import myList from "../vies/myList/index.vue";
import huaF from "../vies/huaF/index.vue";
import dianF from "../vies/dianF/index.vue";
import keFu from "../vies/kefu";
import MoFoundPage from "../vies/MoFoundPage";
import Main from "../vies/Main";

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    component: Main,
    children: [
      {
        path: "/mylist",
        component: myList
      },
      {
        path: "/huaf",
        component: huaF
      },
      {
        path: "/dianf",
        component: dianF
      },
      {
        path: "/kefu",
        component: keFu
      }
    ]
  },
  {
    path: "*",
    component: MoFoundPage
  }
]
const router = new VueRouter({
  routes
})

export default router